const foo = (a, b) => {
  console.log("who are you", a, b);
};

foo();
const bar = [1, 2, 3, 4, 5, 6, 7];
const bar1 = bar.map(v => ({ index: v, content: v }));
console.log(bar1);
